
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

云流水线
云流水线API

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKPipeline/PipelineExecutor.h>


/// 查询获取流水线任务列表，并显示最后一次执行的状态或结果信息
   /// /v1/regions/cn-south-1?sorts.1.name&#x3D;startedAt&amp;sorts.1.direction&#x3D;desc&amp;pageNumber&#x3D;1&amp;pageSize&#x3D;10&amp;filters.1.name&#x3D;name&amp;filters.1.values.1&#x3D;我的pipeline
   /// 
@implementation  PipelineGetPipelinesExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline";
    return self;
}
@end

/// 根据uuid启动一个流水线任务
@implementation  PipelineStartPipelineExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/pipeline/{uuid}:start";
    return self;
}
@end

/// 新建流水线任务
@implementation  PipelineCreatePipelineExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/pipeline";
    return self;
}
@end

/// 更新流水线任务
@implementation  PipelineUpdatePipelineExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"PUT";
    self.url = @"/regions/{regionId}/pipeline/{uuid}";
    return self;
}
@end

/// 上传文件，返回文件内容
@implementation  PipelineReadFileExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/pipeline/file";
    return self;
}
@end

/// 根据uuid获取流水线任务的配置信息
@implementation  PipelineGetPipelineExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/{uuid}";
    return self;
}
@end

/// 查询用户限制
@implementation  PipelineGetLimitsExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline";
    return self;
}
@end

/// 删除一个流水线任务
@implementation  PipelineDeletePipelineExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}/pipeline/{uuid}";
    return self;
}
@end

/// 查询流水线执行历史列表
@implementation  PipelineGetPipelineInstancesExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/pipeline/{uuid}/instances";
    return self;
}
@end

/// 查询多个指定流水线执行及状态信息
   /// 
@implementation  PipelineManualActionExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/pipeline/pipeline/{uuid}/instances/{instanceUuid}/actions/{actionUuid}:manual";
    return self;
}
@end

/// 查询流水线执行结果及状态信息
@implementation  PipelineGetPipelineInstanceExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/pipeline/{uuid}/instance/{instanceUuid}";
    return self;
}
@end

/// 停止流水线的一次执行
@implementation  PipelineStopPipelineInstanceExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/pipeline/pipeline/{uuid}/instance/{instanceUuid}:stop";
    return self;
}
@end

/// 获取可选的源提供商
@implementation  PipelineGetSourceProvidersExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/sourceProviders";
    return self;
}
@end

/// 操作提供商
@implementation  PipelineGetOperationProvidersExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/operationProviders";
    return self;
}
@end

/// 根据条件查询流水线执行历史
   /// 
@implementation  PipelineGetPipelineInstancesByUuidsExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/instances";
    return self;
}
@end

/// 可选地域
@implementation  PipelineGetRegionsExecutor

-(id) initWithJDCloudClient:(PipelineClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/pipeline/regions";
    return self;
}
@end
